package com.adcc.zkdemo.core;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "t_airports_airport")
public class Airport implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3031373642306417554L;

	// --------------------------------------------------------------------------

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "airport_id")
	private Long id;
	
	@Column(name = "uuid", length = 50, nullable = false, unique = true)
	private String uuid;

	@Column(name = "code3", length = 3)
	private String code3;

	@Column(name = "code4", length = 4)
	private String code4;

    @Column(name = "abbr_zh",length = 20)
    private String abbrZh;

	@Column(name = "longitude", length = 16)
	private String longitude;
	
	@Column(name = "longitude_text", length = 16)
	private String longitude_text;
	
	@Column(name = "latitude", length = 16)
	private String latitude;
	
	@Column(name = "latitude_text", length = 16)
	private String latitude_text;
	
	@Column(name = "fir", length = 16)
	private String fir;
	
	@Column(name = "administration", length = 16)
	private String administration;
	
	// --------------------------------------------------------------------------

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode3() {
		return code3;
	}

	public void setCode3(String code3) {
		if (code3 != null) {
			this.code3 = code3.toUpperCase();
		} else {
			this.code3 = null;
		}
	}

	public String getCode4() {
		return code4;
	}

	public void setCode4(String code4) {
		if (code4 != null) {
			this.code4 = code4.toUpperCase();
		} else {
			this.code4 = null;
		}
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

    public String getAbbrZh() {
        return abbrZh;
    }

    public void setAbbrZh(String abbrZh) {
        this.abbrZh = abbrZh;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLongitude_text() {
        return longitude_text;
    }

    public void setLongitude_text(String longitude_text) {
        this.longitude_text = longitude_text;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLatitude_text() {
        return latitude_text;
    }

    public void setLatitude_text(String latitude_text) {
        this.latitude_text = latitude_text;
    }

    public String getFir() {
        return fir;
    }

    public void setFir(String fir) {
        this.fir = fir;
    }

    public String getAdministration() {
        return administration;
    }

    public void setAdministration(String administration) {
        this.administration = administration;
    }
}
